<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>导出设置列表</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />

<link rel="stylesheet" type="text/css" href="$request.getContextPath()/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="$request.getContextPath()/resources/bootstrap-table/css/bootstrap-table.min.css">
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/resources/layui/css/layui.css">
<link rel="stylesheet" href="$request.getContextPath()/resources/cws/system/export/list.css" />
</head>
<body>
	<div class="container-fluid">
		<div id="toolbar">
			#if($shiro.hasPermission('system:export:add'))
				<button type="button" class="btn btn-default btn-sm" onclick="addExportModel()"><span class="glyphicon glyphicon-plus"></span>添加</button>
			#end
			#if($shiro.hasPermission('system:export:export'))
				#if($model.has('sys_export_model'))
					<a type="button" class="btn btn-default btn-sm" href="$request.getContextPath()/common/export/excel/sys_export_model/xlsx"><span class="glyphicon glyphicon-export"></span>导出</a>
				#end
			#end
			<!--#if($shiro.hasPermission('system:export:statistics'))
				<button type="button" class="btn btn-default btn-sm" onclick="modelStatistics()"><span class="glyphicon glyphicon-star"></span>统计</button>
			#end-->
		</div>
		<table id="exportTable" 
		    class="table table-hover table-bordered table-striped table-responsive fixed-table"
		    data-toolbar="#toolbar" 
		    data-show-refresh="true"
			data-search="false" 
			data-show-toggle="true" 
			data-show-columns="true"
			data-show-export="true" 
			data-id-field="id" 
			data-show-export="true"
			data-pagination="true" 
			data-query-params="queryParams"
			data-query-type="limit" 
			data-show-footer="false"
			data-click-to-select="true" 
			data-single-select="false"
			data-striped="true" 
			data-method="get"
			data-url="$request.getContextPath()/system/export/page"
			data-side-pagination="server" 
			data-page-list="[10, 25, 50, 100, ALL]"
			data-show-pagination-switch="true" 
			data-id-field="userId"
			data-search-on-enter-key="true" 
			data-pagination-v-align="bottom"
			data-show-pagination-switch="true">
		</table>
	</div>
</body>
<script src="$request.getContextPath()/resources/jquery/jquery-3.1.0.min.js"></script>
<script src="$request.getContextPath()/resources/bootstrap/js/bootstrap.min.js"></script>

<script type="text/javascript" src="$request.getContextPath()/resources/layer/layer.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layui/layui.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layui/lay/modules/element.js"></script>

<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table.min.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table-zh-CN.min.js"></script>

<script type="text/javascript">
	var exportPermissionButtons=[];
	var exportViewPermission="$shiro.hasPermission('system:export:view')";
	if(exportViewPermission&&exportViewPermission=="true"){
		exportPermissionButtons.push('<button type="button" class="btn btn-default btn-sm viewExportModel"><span class="glyphicon glyphicon-eye-open"></span>详情</button>');
	}
	var exportEditPermission="$shiro.hasPermission('system:export:edit')";
	if(exportEditPermission&&exportEditPermission=="true"){
		exportPermissionButtons.push('<button type="button" class="btn btn-default btn-sm editExportModel"><span class="glyphicon glyphicon-edit"></span>编辑</button>');
	}
	var exportDeletePermission="$shiro.hasPermission('system:export:delete')";
	if(exportDeletePermission&&exportDeletePermission=="true"){
		exportPermissionButtons.push('<button type="button" class="btn btn-default btn-sm deleteExportModel"><span class="glyphicon glyphicon-trash"></span>删除</button>');
	}
</script>
<script type="text/javascript" src="$request.getContextPath()/resources/cws/system/export/list.js"></script>
</html>
#parse("/portal/account/footer2.html")